<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page language="java" import="org.apache.commons.lang.StringUtils" %>
<%@ page trimDirectiveWhitespaces="true" %>
<%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator" prefix="decorator" %>
<%@ taglib uri="http://www.opensymphony.com/sitemesh/page" prefix="page" %>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<% String this_path=request.getContextPath(); 
	String[] array = StringUtils.split( request.getServletPath(), "/", 2);
	String PACKET=array[0];
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns = "http://www.w3.org/1999/xhtml" dir="ltr" lang="zh-CN">
<head>
	<title><decorator:title default="管理" />-瑞丰小额贷款管理系统</title>
	<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="瑞丰小额贷款管理系统">
	<script type="text/javascript" src="<%=this_path%>/js/common/jquery.min.js"></script>
	<script type="text/javascript" src="<%=this_path%>/js/common/jquery.ui.min.js"></script>
	<script type="text/javascript" src="<%=this_path%>/js/common/jquery.layout.js"></script> 
	<script type="text/javascript" src="<%=this_path%>/ext/jquery_ui/timepicker/jquery-ui-timepicker-addon.js"></script>
	<script type="text/javascript" src="<%=this_path%>/ext/jquery_ui/timepicker/jquery-ui-sliderAccess.js"></script>
	<script type="text/javascript" src="<%=this_path%>/ext/jstree/jquery.jstree.js"></script>
	<script type="text/javascript" src="<%=this_path%>/js/common/jquery.validate.min.js"></script>
	<script type="text/javascript" src="<%=this_path%>/js/common/jquery.bootpag.min.js"></script>
	<script type="text/javascript" src="<%=this_path%>/js/common/common.js"></script>
	<script type="text/javascript" src="<%=this_path%>/js/common/jquery.cookie.js"></script>
	<link type="text/css" rel="stylesheet" href="<%=this_path%>/css/main.css" />
	<link rel="stylesheet" href="<%=this_path%>/ext/jquery_ui/themes/base/jquery-ui.css">
	<link rel="stylesheet" href="<%=this_path%>/ext/jquery_ui/timepicker/jquery-ui-timepicker-addon.css">
	<link type="text/css" rel="stylesheet" href="<%=this_path%>/css/error.css" />
	<script type="text/javascript">$gettotal=<%=session.getAttribute("pagetotal") %>;</script>
</head> 
<body>
<div class="ui-layout-north">
	<div class="main_header_banner">
		<page:applyDecorator page="/WEB-INF/main/top.jsp" name="panel" />
	</div>
	<div class="main_header_menu">
		<page:applyDecorator page="/WEB-INF/main/menu.jsp" name="panel" />
	</div>
	<!-- <div class="main_header_menu_shadow"></div> -->
</div> 
<div class="outer-west">
	<div id="jstree"></div>
	<script type="text/javascript">
	$(function () {
		//var arrs=window.location.pathname.split('/');
		$("#jstree")
			.jstree({ 
				"json_data" : {
					"data" : <%=session.getAttribute(PACKET) %>
				},
				"plugins" : ["themes","json_data","ui"],
				"core":{"loading":"加载数据中...","animation":0,initially_open:[$.cookie('openid')]}
			}).bind("select_node.jstree", function (event, data) {
				var node = data.rslt.obj;
				if($(node).hasClass('jstree-leaf')){
					location.href=node.find('a').attr('href');
				}else{					
	   				if ($(node).hasClass('jstree-closed')) {
	   					$.cookie('openid', node.attr("id"));
	   					return data.inst.open_node(node); 
	   				}
	    			if ($(node).hasClass('jstree-open')) { return data.inst.close_node(node); }
				}			
			})
			.delegate("a", "click", function (event, data) { event.preventDefault();});
		});
	</script>
</div>
<div class="outer-center" >
	<div class="inner-north"><span id="shownavlink"></span></div>
	<div class="inner-center">
		<div style="height:16px;text-align:center;font-size:16px;font-weight:bold"><decorator:title /></div><br />
		<decorator:body />
	</div>
	<div class="inner-south"></div>
</div>
<!-- 
<div class="ui-layout-south">
<div class="left">管理系统</div>
</div> --> 
</body> 
</html> 

